﻿using System;
using System.ServiceModel;
using Hippo.Framework.Model;

namespace Hippo.Console.Lib.Services
{
    public interface IControlServiceCallback
    {
        /// <summary>
        /// Start running tests defined with the specification
        /// </summary>
        /// <param name="specification">A specification for what tests that should be run on the client.</param>
        /// <returns>A unique identifier for refering to tests that are currently running. Could be used to send stopsignal to the agents.</returns>
        [OperationContract]
        Guid StartTest(RunSpecification specification);

        [OperationContract]
        void StopTest();
    }
}
